package com.wsoft.bpm.query.node;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 开始事件请求类
 *
 * @Author zhonglj
 * @Date 2024-09-11 15:15
 */
@Getter
@Setter
@Accessors(chain = true)
public class StartEventQuery implements BaseNode {
    @Schema(description = "唯一标识")
    private String id;
    @NotBlank(message = "模型id不能为空!")
    @Schema(description = "模型id")
    private String modelId;
    @Schema(description = "名称")
    private String name;
    @Schema(description = "文档描述")
    private String documentation;
    @Schema(description = "流程监听器")
    private List<ListenerQuery> listeners;
    @Schema(description = "是否通过验证")
    private boolean validated;
    @Schema(description = "发起人")
    private String initiator;
    @Schema(description = "事件类型")
    private String eventType;
    @Schema(description = "消息事件标识")
    private String messageRef;
    @Schema(description = "发起条件")
    private String startCondition;
}
